//
//  CoreDataManager.h
//  CoreDataClass28
//
//  Created by KING on 16/1/22.
//  Copyright © 2016年 KING. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>

@interface CoreDataManager : NSObject

+(CoreDataManager *)defaultManager;

//数据管理器
@property (readonly, strong, nonatomic) NSManagedObjectContext *managedObjectContext;
//数据模型器
@property (readonly, strong, nonatomic) NSManagedObjectModel *managedObjectModel;
//连接器
@property (readonly, strong, nonatomic) NSPersistentStoreCoordinator *persistentStoreCoordinator;
//保存数据
- (void)saveContext;
///获取存储路径
- (NSURL *)applicationDocumentsDirectory;

@end
